/**
@Description: 用户组织关联关系配置API
@Author:zqy
@Date:2024-09-24 14:06:35
 * @Last Modified by: zqy
 * @Last Modified time: 2024-09-24 14:08:01
 * */

import request from '@/utils/request'
import { json2FormData } from '@/utils'

/**
 * 保存
 * @param {string} id (id存在为编辑，不存在为新增)
 */
export function saveConfig(data) {
  return request({
    url: `/api/v1/accountCustomerConfig`,
    method: data.id ? 'put' : 'post',
    data
  })
}

/**
 * 删除
 * @param {string} id
 */
export function delConfig(id) {
  return request({
    url: `/api/v1/accountCustomerConfig/${id}`,
    method: 'delete'
  })
}
